package com.wut.clock.common.constant;

/**
 * @author ZYH
 * @unit D9Lab
 * @description 文章常量
 * @date 2022/6/1 16:44
 */
public class ArticleConstant {

    public enum Type {

        CHECKING("置顶",1),
        AVAILABLE("普通",0);

        private final String desc;
        private final Integer code;

        Type(String desc, Integer code){
            this.desc = desc;
            this.code = code;
        }

        public String getDesc() {
            return desc;
        }

        public Integer getCode() {
            return code;
        }
    }

    public enum Status {

        CHECKING("公开",1),
        AVAILABLE("私密",0);

        private final String desc;
        private final Integer code;

        Status(String desc, Integer code){
            this.desc = desc;
            this.code = code;
        }

        public String getDesc() {
            return desc;
        }

        public Integer getCode() {
            return code;
        }
    }

}
